package Robot;
import javaclient2.*;

/**
 * Class from which all actuators should be derived.
 * @author Alejandro Pustowka
 */
public abstract class Actuator extends Device{

    /**
     * Id of the Actuator
     */
    private int id;

    /**
     * Constructor for Actuator.
     * @param robot The connection to the Player server.
     * @param name The name of the actuator. Useful when having arrays of devices.
     * @param index The index of the interface in the robot (see Player doc).
     */
    public Actuator(Robot robot, String name, int index)
    {
        super(robot,name,index);
        id++;
    
    }

    /**
     * Not used at the time.
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * Not used at the time.
     * @param val id = val
     */
    public void setId(int val) {
        this.id = val;
    }
}
